//package com.example.demo.job;
//
//
//import com.xxl.job.core.biz.model.ReturnT;
//import com.xxl.job.core.handler.IJobHandler;
//import com.xxl.job.core.handler.annotation.JobHandler;
//import com.xxl.job.core.log.XxlJobLogger;
//import org.springframework.stereotype.Component;
//
//import java.util.concurrent.TimeUnit;
//
//@Component
//@JobHandler(value = "demoJobHandler")
//public class XxlJobExample extends IJobHandler {
//
//    @Override
//    public ReturnT<String> excute(String param) throws Exception {
//        XxlJobLogger.log("XxlJobExample executing " + param);
//        for (int i = 0; i < 10; i++) {
//            XxlJobLogger.log("XxlJobExample executing " + i);
//            TimeUnit.SECONDS.sleep(5);
//        }
//
//        return ReturnT.SUCCESS;
//    }
//
//}
